﻿using DeltaGroup.WheelOfJeopardy.ChallengeManager;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;

namespace WoJ_UT_Mike
{
    
    
    /// <summary>
    ///This is a test class for StopWordsTest and is intended
    ///to contain all StopWordsTest Unit Tests
    ///</summary>
    [TestClass()]
    public class StopWordsTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }


        /// <summary>
        ///A test for BaseWordList
        ///</summary>
        [TestMethod()]
        public void BaseWordListTest()
        {
            List<string> actual;
            actual = StopWords.BaseWordList;
            string expect = "and"; // from base array
            string dontExpect1 = "how"; // from moderate array
            string dontExpect2 = "about"; // from relaxed array
            
            Assert.IsTrue(actual.Contains(expect));
            Assert.IsFalse(actual.Contains(dontExpect1));
            Assert.IsFalse(actual.Contains(dontExpect2));

        }

        /// <summary>
        ///A test for ModerateWordList
        ///</summary>
        [TestMethod()]
        public void ModerateWordListTest()
        {
            List<string> actual;
            actual = StopWords.ModerateWordList;
            string expect1 = "and"; // from base array
            string expect2 = "how"; // from moderate array
            string dontExpect1 = "about"; // from relaxed array

            Assert.IsTrue(actual.Contains(expect1));
            Assert.IsTrue(actual.Contains(expect2));
            Assert.IsFalse(actual.Contains(dontExpect1));
        }

        /// <summary>
        ///A test for RelaxedWordList
        ///</summary>
        [TestMethod()]
        public void RelaxedWordListTest()
        {
            List<string> actual;
            actual = StopWords.RelaxedWordList;
            string expect1 = "and"; // from base array
            string expect2 = "how"; // from moderate array
            string expect3 = "about"; // from relaxed array

            Assert.IsTrue(actual.Contains(expect1));
            Assert.IsTrue(actual.Contains(expect2));
            Assert.IsTrue(actual.Contains(expect3));

        }
    }
}
